# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=py3-nanoid
_pyname=${pkgname/py3-/}
pkgver=2.0.0
pkgrel=2
pkgdesc="Tiny, secure, URL-friendly, unique string ID generator for Python"
url="https://github.com/puyuan/py-nanoid"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/n/nanoid/nanoid-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
options="!check" # No test included in the source tarball

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
7db65075357feb19c4747be9abca1a19a2b8583f82cdcae87f06846141d798a725128ee784ce33cd3b14b272c0beb2dcac0faf4536e8d5183eaa06eab79fff87  nanoid-2.0.0.tar.gz
"
